#include "pch.h"
#include "DataTableSchema.hpp"




db::TableDL::Ptr DataTableSchema::table()
{
	db::TableDL::Attributes attributes;
	attributes << db::TableAttribute::Ptr(new db::TableAttribute(db::Attribute::Integer, "id", db::Flags::Key /*| db::Flags::AutoIncrement*/));
	attributes << db::TableAttribute::Ptr(new db::TableAttribute(db::Attribute::String, "url", db::Flags::Unique));
	attributes << db::TableAttribute::Ptr(new db::TableAttribute(db::Attribute::ByteArray, "data"));
	return db::TableDL::Ptr(new db::TableDL("data", "crawler_replies", attributes));
}
///////////////////////////////////////////////////////////////////////////////////////////////////
